import request from '@/utils/request'

// 角色列表-分页
export const getRoleListApi = params => request({
  url: '/sys_role/list',
  method: 'GET',
  params
})

// 角色添加
export const addRoleApi = data => request({
  url: '/sys_role/add',
  method: 'post',
  data
})

// 角色详情
export const getRoleInfoApi = id => request({
  url: '/sys_role/rowInfo?id=' + id,
  method: 'get'

})

// 角色删除
export const delRoleInfoApi = id => request({
  url: '/sys_role/del?id=' + id,
  method: 'get'

})
// 角色修改
export const editRoleInfoApi = data => request({
  url: '/sys_role/update',
  method: 'post',
  data
})

